Fix errors in computing the size of the second child.
authorOwen Taylor <otaylor@redhat.com>
Fri, 7 Dec 2001 04:16:16 +0000 (04:16 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 7 Dec 2001 04:16:16 +0000 (04:16 +0000)
Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
        in computing the size of the second child.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkhpaned.c
gtk/gtkvpaned.c

index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index db97d43c16e71565609d6b684df3608183cea1b8..94d70b720fbb8c25386e819d1ab370929148f7aa 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
+       in computing the size of the second child.
+
 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Make button 1 clicks on the trough
index f2a30b1826afdffe32f5085a2f4f374c8763b8c2..196ca412779b3bb231a8b0f23aa4b25c38655548 100644 (file)
@@ -196,7 +196,7 @@ gtk_hpaned_size_allocate (GtkWidget     *widget,
       child1_allocation.y = child2_allocation.y = widget->allocation.y + border_width;
       
       child2_allocation.x = child1_allocation.x + child1_allocation.width +  paned->handle_pos.width;
-      child2_allocation.width = MAX (1, (gint) allocation->width - child2_allocation.x - border_width);
+      child2_allocation.width = MAX (1, widget->allocation.x + widget->allocation.width - child2_allocation.x - border_width);
       
       /* Now allocate the childen, making sure, when resizing not to
        * overlap the windows
index 3951f76b3fbe6b58fd0101bff8028521230e2923..5cfd4b69816ec18f7be5aae0466cb0ea49494c46 100644 (file)
@@ -196,7 +196,7 @@ gtk_vpaned_size_allocate (GtkWidget     *widget,
       child1_allocation.y = widget->allocation.y + border_width;
       
       child2_allocation.y = child1_allocation.y + child1_allocation.height + paned->handle_pos.height;
-      child2_allocation.height = MAX (1, (gint) allocation->height - child2_allocation.y - border_width);
+      child2_allocation.height = MAX (1, widget->allocation.y + widget->allocation.height - child2_allocation.y - border_width);
       
       /* Now allocate the childen, making sure, when resizing not to
        * overlap the windows